package com.study.demo.mybatisplus;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.study.demo.mybatisplus.CustomSqlInjector.CustomSqlInjector;
import com.study.demo.mybatisplus.mapper.UserMapper;
import com.study.demo.mybatisplus.vo.SexEnum;
import com.study.demo.mybatisplus.vo.User;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author: elvin
 * @time: 2019-05-27 13:17
 * @desc:
 **/
@SpringBootApplication
@MapperScan("com.study.demo.mybatisplus")
public class MybatisplusApplication {

    public static void main(String[] args){
        SpringApplication.run(MybatisplusApplication.class, args);
    }

    /**
     * 注入 updateAllColumnById 方法
     * @return
     */
    @Bean
    public ISqlInjector sqlInjector() {
        return new CustomSqlInjector();
    }
}
